//纯方法进行状态的描述
const header = (state = {menuToggle:false},action)=>{
    if(action.type == 'iconToggle'){
        return Object.assign({},state,{
            menuToggle:!state.menuToggle
        });
    }else{
        return state
    }
};
export default header;